#!/usr/bin/env python

import socket
import sys

server_addr = ("127.0.0.1", 8080)

arg = (float(sys.argv[1]), float(sys.argv[2]))
recv_len = 1024

sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
print("Start tasker")

sock.sendto(str(arg[0]).encode(), server_addr)
sock.sendto(str(arg[1]).encode(), server_addr)
print("Task sent")

func_value, addr = sock.recvfrom(recv_len)
print(func_value.decode())
